﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class update_table2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.DropColumn(
            //    name: "MyProperty",
            //    table: "Bb_user_buy_product");

            //migrationBuilder.AlterColumn<DateTime>(
            //    name: "Buy_date",
            //    table: "Bb_user_buy_product",
            //    maxLength: 50,
            //    nullable: true,
            //    oldClrType: typeof(int),
            //    oldMaxLength: 50);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.AlterColumn<int>(
            //    name: "Buy_date",
            //    table: "Bb_user_buy_product",
            //    maxLength: 50,
            //    nullable: false,
            //    oldClrType: typeof(DateTime),
            //    oldMaxLength: 50,
            //    oldNullable: true);

            //migrationBuilder.AddColumn<DateTime>(
            //    name: "MyProperty",
            //    table: "Bb_user_buy_product",
            //    nullable: true);
        }
    }
}
